package com.chen.spike.mq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QueueConfig {

    @Bean
    public Queue respQueue(){
        return new Queue("order-resp-queue", true);
    }

    @Bean
    public Queue requestQueue(){
        return new Queue("order-request-queue", true);
    }
}
